package docs.oracle.com;

/**
 * Created by msingh on 2014-06-27.
 */
public class MountainBike extends Bicycle {
    private String suspension;

    public MountainBike(int startcadence, int startgear, int startspeed, String suspensionType) {
        super(startcadence, startgear, startspeed);
        this.setSuspension(suspensionType);
    }

    public void setSuspension(String suspensionType) {
        this.suspension = suspensionType;
    }

    public String getSuspension() {
        return suspension;
    }

    public void printDescription() {
        super.printDescription();
        System.out.println("The " + "MountainBike has a " +
                getSuspension() + " suspension.");
    }

}

